package com.bravo.listeners;

import com.bravo.event.MyEvent;

/**
 * @Auther: Min.Liu
 * @Description:
 * @Date: Created in 16:36 2024/10/30
 */
public class MyListener implements BravoApplicationListener<MyEvent> {
    /**
     * 事件下单成功的监听回调方法
     *
     * @param event
     */
    @Override
    public void onApplicationEvent(MyEvent event) {
        System.out.println("进入 MyListener 监听进行回调！！");
        //执行回调
        event.callback();
    }
}
